package site.yunnong.atvris.portal.service;

import site.yunnong.atvris.common.api.Page;
import site.yunnong.atvris.common.dto.NewQueryParam;
import site.yunnong.atvris.common.dto.NewSaveParam;
import site.yunnong.atvris.common.dto.NewsUpdateParam;
import site.yunnong.atvris.dao.domain.News;
import site.yunnong.atvris.service.vo.NewsVO;

/**
 * 用户发布的动态
 *
 * @author zhangjinghao
 * @email jhzhang9102@163.com
 * @date 2021-07-09 23:45:37
 */
public interface NewsService {

    Page<NewsVO> queryPage(NewQueryParam param);

    NewsVO save(NewSaveParam param);

    int update(NewsUpdateParam param);

    int removeByUnid(Long unid);

    News queryByUnid(Long unid);

    int updateNews(News news);

    /**
     * 分页查自己和关注的人的动态
     * @param param
     * @return
     */
    Page<NewsVO> queryFollowNewsPage(NewQueryParam param);
}

